import { http } from "@/utils/request";
import config from "@/config";
export default {
	/**
	 * 获取接收消息列表
	 * @returns
	 */

	getReceiveList: {
		url: `${config.API_URL}/system/queueMessage/receiveList`,
		name: "获取接收消息列表",
	},
	/**
	 * 获取发送消息列表
	 * @returns
	 */

	getSendList: {
		url: `${config.API_URL}/system/queueMessage/sendList`,
		name: "获取发送消息列表",
	},
	/**
	 * 获取接收人列表
	 * @returns
	 */

	getReceiveUser: {
		url: `${config.API_URL}/system/queueMessage/getReceiveUser`,
		name: "获取接收人列表",
	},
	/**
	 * 删除消息
	 * @returns
	 */

	deletes: {
		url: `${config.API_URL}/system/queueMessage/deletes`,
		name: "删除消息",
		post: async function (ids) {
			return await http.post(this.url, { ids: ids });
		},
	},
	/**
	 * 更新读取状态
	 * @returns
	 */

	updateReadStatus: {
		url: `${config.API_URL}/system/queueMessage/updateReadStatus`,
		name: "更新读取状态",
		post: async function (ids) {
			return await http.post(this.url, { ids: ids });
		},
	},
	/**
	 * 发私信
	 * @returns
	 */

	sendPrivateMessage: {
		url: `${config.API_URL}/system/queueMessage/sendPrivateMessage`,
		name: "发私信",
	},
};
